package whitelistrouter

import (
	"vpn-management-server/src/controller/whitelistcontroller"
	"vpn-management-server/src/interceptor/whitelistinterceptor"
	"vpn-management-server/src/router/routermodel"
)

var whitelistRouter = routermodel.NewRouter()

func init() {
	whitelistRouter.RegisterHandleSet("addWhiteList", whitelistinterceptor.WhiteListValidator, whitelistcontroller.AddWhiteList, whitelistinterceptor.AddWhiteListLogToChan)
	whitelistRouter.RegisterHandleSet("deleteWhiteListByIDs", whitelistinterceptor.WhiteListIDsValidator, whitelistcontroller.DeleteWhiteList, whitelistinterceptor.DeleteWhiteListLogToChan)
	whitelistRouter.RegisterHandleSet("getWhiteListByPage", whitelistinterceptor.PageValidator, whitelistcontroller.GetWhiteListByPage, nil)
}
